﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace Fitness_tracker.UserControls
{
    /// <summary>
    /// UserCard.xaml 的交互逻辑
    /// </summary>
    public partial class UserCard : UserControl
    {
        public UserCard()
        {
            InitializeComponent();
        }
        public string FullName
        {
            get { return (string)GetValue(FullNamePorperty); }
            set { SetValue(FullNamePorperty, value); }
        }
        public static readonly DependencyProperty FullNamePorperty = DependencyProperty.Register("FullName", typeof(string), typeof(UserCard));
        public string Title
        {
            get { return (string)GetValue(TitlePorperty); }
            set { SetValue(TitlePorperty, value); }
        }
        public static readonly DependencyProperty TitlePorperty = DependencyProperty.Register("Title", typeof(string), typeof(UserCard));
        public string Time
        {
            get { return (string)GetValue(TimePorperty); }
            set { SetValue(TimePorperty, value); }
        }
        public static readonly DependencyProperty TimePorperty = DependencyProperty.Register("Time", typeof(string), typeof(UserCard));
        public ImageSource Image
        {
            get { return (ImageSource)GetValue(ImagePorperty); }
            set { SetValue(ImagePorperty, value); }
        }
        public static readonly DependencyProperty ImagePorperty = DependencyProperty.Register("Image", typeof(ImageSource), typeof(UserCard));
        public bool IsActive
        {
            get { return (bool)GetValue(IsActivePorperty); }
            set { SetValue(IsActivePorperty, value); }
        }
        public static readonly DependencyProperty IsActivePorperty = DependencyProperty.Register("IsActive", typeof(bool), typeof(UserCard));
    }
}
